package com.hhxy.model.vo;

import com.hhxy.model.entity.Role;
import com.hhxy.model.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ghp
 * @date 2023/5/5
 * @title
 * @description 用于封装成功登录后响应给前端的用户数据
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoAndRoleIdsVo {
    private User user;
    private List<Role> roles;
    private List<Long> roleIds;
}